package qing.common;

import java.io.File;
import java.util.Locale;
import org.springframework.web.servlet.view.InternalResourceView;

//扩展使用静态物理路径解析页面
public class ExpendHtmlResourceView extends InternalResourceView {
 @Override
	 public boolean checkResource(Locale locale) {
	  File file = new File(this.getServletContext().getRealPath("/") + getUrl());
	  return file.exists();// 判断该页面是否存在
	 }
}
